/*
 * @Author: 夏郑兴 971348024@qq.com
 * @Date: 2022-05-18 10:35:35
 * @LastEditors: 夏郑兴 971348024@qq.com
 * @LastEditTime: 2022-05-23 10:12:54
 * @FilePath: /gitee-project/Users/xzx/Desktop/A-xichen/yingxuan-git-project/pa220027-fenfa/src/api/service/dataManagent.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import request from '@/utils/system/request'

/**
 * 数据管理列表
 * date_time_range array[string]
 * page integer
 * page_size integer
 **/
export function getDataManageList(data: object) {
  return request({
    url: '/admin/data_manage/list',
    baseURL: '/api',
    method: 'post',
    data
  })
}

/**
 * 批量删除所选项目的通知数据
 * project_ids array[string]
 **/
export function delDataMessage(data: object) {
  return request({
    url: '/admin/data_manage/message/del',
    baseURL: '/api',
    method: 'post',
    data
  })
}

/**
 * 批量删除项目
 * project_ids array[string]
 **/
export function delDataMessageProject(data: object) {
  return request({
    url: '/admin/data_manage/project/del',
    baseURL: '/api',
    method: 'post',
    data
  })
}

/**
 * 批量删除所选时间段发放的题目
 * project_ids array[string]
 **/
export function delDataMessageTopic(data: object) {
  return request({
    url: '/admin/data_manage/topic/del',
    baseURL: '/api',
    method: 'post',
    data
  })
}

/**
 * 批量删除所选时间段发放的题目答案
 * project_ids array[string]
 **/
export function delDataMessageTopicAnswer(data: object) {
  return request({
    url: '/admin/data_manage/topic_answer/del',
    baseURL: '/api',
    method: 'post',
    data
  })
}
/**
 * 违禁词列表
 * project_ids array[string]
 **/
export function prohibitedWordsList(data: object) {
  return request({
    url: '/admin/prohibited_words/list',
    baseURL: '/api',
    method: 'post',
    data
  })
}
/**
 * 违禁词列表
 * project_ids array[string]
 **/
export function prohibitedWordsBatchDel(data: object) {
  return request({
    url: '/admin/prohibited_words/batch_del',
    baseURL: '/api',
    method: 'post',
    data
  })
}
export function prohibitedWordsBatchExport(data: object) {
  return request({
    url: '/admin/prohibited_words/batch_export',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function forcedModify(data: object) {
  return request({
    url: '/admin/prohibited_words/forced_modify',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function whitelist(data: object) {
  return request({
    url: '/admin/whitelist/list',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function whitelistBatchDel(data: object) {
  return request({
    url: '/admin/whitelist/batch_del',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function whitelistBatchExport(data: object) {
  return request({
    url: '/admin/whitelist/batch_export',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function phoneExport(data: object) {
  return request({
    url: '/admin/phone/export',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function phoneIsOpen(data: object) {
  return request({
    url: '/admin/phone/is_open',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function setPhoneIsOpen(data: object) {
  return request({
    url: '/admin/phone/is_open_set',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function countryCode(data: object) {
  return request({
    url: '/admin/phone/country_code',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}
export function phoneDel(data: object) {
  return request({
    url: 'admin/phone/del',
    method: 'post',
    baseURL: '/api',
    data: data
  })
}